package com.ch.dream.activity.main;

import android.os.Bundle;

import com.ch.dream.R;
import com.ch.dream.base.BaseActivity;
import com.ch.dream.logic.main.LoginLogic;

public class LoginActivity extends BaseActivity {

	private LoginLogic logic;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		try{
			logic = new LoginLogic(this);
			logic.setViews(R.layout.m_login);
			setTitle("返回", "登录", "false");
			logic.init();
		}catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	@Override
	protected void handlerTitleBarEvent(int mode) {
		if(mode == LEFT_BUTTON){
			finish();
		}
	}
}
